package com.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dao.JiangChengDao;
import com.model.JiangCheng;
import com.service.JiangChengService;

@Component("jiangChengService")
public class JiangChengServiceImpl implements JiangChengService{

	private JiangChengDao jiangChengDao;
	public void addJiangCheng(JiangCheng jiangCheng) {
		jiangChengDao.addJiangCheng(jiangCheng);
	}

	public void deleteJiangCheng(JiangCheng jiangCheng) {
		jiangChengDao.deleteJiangCheng(jiangCheng);
	}

	public JiangCheng getJiangCheng(int id) {
		return jiangChengDao.getJiangCheng(id);
	}

	public List<JiangCheng> getJiangChengList(String hql) {
		return jiangChengDao.getJiangChengList(hql);
	}

	public void updateJiangCheng(JiangCheng jiangCheng) {
		jiangChengDao.updateJiangCheng(jiangCheng);
	}

	public JiangChengDao getJiangChengDao() {
		return jiangChengDao;
	}
	@Resource
	public void setJiangChengDao(JiangChengDao jiangChengDao) {
		this.jiangChengDao = jiangChengDao;
	}
	
}
